<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<title>코오롱</title>
<link rel="stylesheet" type="text/css" href="${requestScope.contextPath}/css/import.css" />
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<c:set var="userAgent" value="${header['User-Agent']}" />
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<c:if test="${fn:indexOf(userAgent, 'Android') != -1}"><c:set var="platForm" value="Android" /></c:if>
<c:if test="${fn:indexOf(userAgent, 'iPhone') != -1}"><c:set var="platForm" value="iPhone" /></c:if>
<script type="text/javascript">
	function appBack() {
		document.location.href='${requestScope.contextPath}/business/mOI/mOI.do';
	}
</script>
<script type="text/javascript" src="${requestScope.contextPath}/js/cubiq-iscroll/iscroll.js"></script>
<script type="text/javascript">
var myScroll;
function loaded() {
	myScroll = new iScroll('wrapper', { 
		checkDOMChanges: true,
		zoom: false
	});
	<c:if test="${param.endY != null and param.endY != ''}">
		myScroll.scrollTo(0, ${param.endY}, 0);
		endY = ${param.endY};
	</c:if>
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
window.addEventListener('DOMContentLoaded', setTimeout(function () { loaded(); }, 200), false);
</script>
<style type="text/css" media="all">
/*원본 : #wrapper { position:absolute; z-index:1; top:48px; bottom:0px; left:0; width:320px; overflow:auto; }*/
#wrapper { position:absolute; z-index:1; top:48px; bottom:0px; left:0; width:100%; overflow:auto; }
#scroller { position:absolute; -webkit-tap-highlight-color:rgba(0,0,0,0); width:100%; padding:0; background:#fff; }
</style>
</head>
<body>
	<div id="wrap">
		<div class="header">
			<h1>O.I. 제안</h1>
		</div><!-- // header -->
		<div id="wrapper" class="content">
		<div id="scroller">
			<div class="oi">
				<ul>
				<c:if test="${fn:length(mapList) == 0}">
				<li>정보가 존재하지 않습니다.</li>
				</c:if>
				<c:forEach items="${mapList}" var="map" varStatus="status">
				<c:choose>
				<c:when test="${map.judgeResult eq '임시저장' or map.judgeResult eq '대기' or map.judgeResult eq '채택' or map.judgeResult eq '참가' or map.judgeResult eq '건의' or map.judgeResult eq '자동실천' or map.judgeResult eq '내용보완'}">
				<c:set var="classValue" value="register" />
				</c:when>
				<c:otherwise>
				<c:set var="classValue" value="idea" />
				</c:otherwise>
				</c:choose>
				<c:choose>
				<c:when test="${map.sflag eq '아이디어'}">
					<c:choose>
					<c:when test="${map.sub1 eq '실천과제'}">
					<!-- <li><a href="javascript:goUrl('${requestScope.contextPath}/business/mOI/mActIdeaSuggestionView.do?seq=${map.baseseq}&sugflag=${map.sugflag}&page=${page}&endY='+endY);"><span class="bold list2">${map.title}</span><span class="date1"><img src="${requestScope.contextPath}/images/oi/btn_choose.gif" alt="실천과제" /> [${map.sflag}] [${map.deptname}] ${map.createdate}</span><c:if test="${map.judgeResult ne ''}"><span class="${classValue}">${map.judgeResult}</span></c:if></a></li> -->
					<li><a href="javascript:goUrl('${requestScope.contextPath}/business/mOI/mActChooseSuggestionView.do?eseq=${map.baseseq}&seq=${map.ideabaseseq}&sugflag=${map.sugflag}&page=${page}&endY='+endY);"><span class="bold list3">${map.title}</span><span class="date1"><img src="${requestScope.contextPath}/images/oi/btn_choose.gif" alt="실천과제" /> [${map.sflag}] [${map.deptname}] ${map.createdate}</span><c:if test="${map.judgeResult ne ''}"><span class="${classValue}">${map.judgeResult}</span></c:if></a></li>
					</c:when>
					<c:when test="${map.sub1 eq 'OI 제안'}">
					<li><a href="javascript:goUrl('${requestScope.contextPath}/business/mOI/mOIIdeaSuggestionView.do?seq=${map.baseseq}&sugflag=${map.sugflag}&page=${page}&endY='+endY);"><span class="bold list2">${map.title}</span><span class="date1"><img src="${requestScope.contextPath}/images/oi/btn_oi.gif" alt="O.I. 제안" /> [${map.sflag}] [${map.deptname}] ${map.createdate}</span><c:if test="${map.judgeResult ne ''}"><span class="${classValue}">${map.judgeResult}</span></c:if></a></li>
					</c:when>
					</c:choose>
				</c:when>
				<c:when test="${map.sflag eq '실시'}">
					<li><a href="javascript:goUrl('${requestScope.contextPath}/business/mOI/mOIExecSuggestionView.do?seq=${map.baseseq}&sugflag=${map.sugflag}&page=${page}&endY='+endY);"><span class="bold list2">${map.title}</span><span class="date1"><img src="${requestScope.contextPath}/images/oi/btn_oi.gif" alt="O.I. 제안" />[${map.sflag}] [${map.deptname}] ${map.createdate}</span><c:if test="${map.judgeResult ne ''}"><span class="${classValue}">${map.judgeResult}</span></c:if></a></li>
				</c:when>
				<c:when test="${map.sflag eq '채택실시'}">
					<c:choose>
					<c:when test="${map.sub1 eq '실천과제'}">
					<li><a href="javascript:goUrl('${requestScope.contextPath}/business/mOI/mActChooseSuggestionView.do?eseq=${map.baseseq}&seq=${map.ideabaseseq}&sugflag=${map.sugflag}&page=${page}&endY='+endY);"><span class="bold list3">${map.title}</span><span class="date1"><img src="${requestScope.contextPath}/images/oi/btn_choose.gif" alt="실천과제" /> [${map.sflag}] [${map.deptname}] ${map.createdate}</span><c:if test="${map.judgeResult ne ''}"><span class="${classValue}">${map.judgeResult}</span></c:if></a></li>
					</c:when>
					<c:when test="${map.sub1 eq 'OI 제안'}">
					<li><a href="javascript:goUrl('${requestScope.contextPath}/business/mOI/mOIChooseSuggestionView.do?eseq=${map.baseseq}&seq=${map.ideabaseseq}&sugflag=${map.sugflag}&page=${page}&endY='+endY);"><span class="bold list3">${map.title}</span><span class="date1"><img src="${requestScope.contextPath}/images/oi/btn_oi.gif" alt="O.I. 제안" /> [${map.sflag}] [${map.deptname}] ${map.createdate}</span><c:if test="${map.judgeResult ne ''}"><span class="${classValue}">${map.judgeResult}</span></c:if></a></li>
					</c:when>
					</c:choose>
				</c:when>
				</c:choose>
				</c:forEach>
				</ul>
				<c:if test="${tbMap.TotalRecordCnt > fn:length(mapList)}">
				<div class="btn_more11">
					<p class="more11"><a href="javascript:goUrl('${requestScope.contextPath}/business/mOI/mOIMySuggestionList.do?page=${page+1}&endY='+endY);">15개 더보기</a></p>
					<p class="more22"><a href="javascript:myScroll.scrollTo(0, 0, 0);"><img src="${requestScope.contextPath}/images/news/btn_top.gif" alt="맨위로" />&nbsp;&nbsp;맨위로</a></p>
				</div>
				</c:if>
			</div>
 			<div class="btn_area" style="border:none;">
			<p class="left_area"><a href="${requestScope.contextPath}/business/mOI/mOIIdeaSuggestionWriteForm.do"><img src="${requestScope.contextPath}/images/oi/btn_idea.gif" alt="아이디어제안" /></a></p>
			<p class="left_area"><a href="${requestScope.contextPath}/business/mOI/mOIExecSuggestionWriteForm.do"><img src="${requestScope.contextPath}/images/oi/btn_register.gif" alt="실시제안등록" /></a></p>
			<div class="right_area">
				<p style="padding:0;"><a href="${requestScope.contextPath}/business/mOI/mOI.do"><img src="${requestScope.contextPath}/images/oi/btn_main.gif" alt=" 메인" /></a></p>
			</div>
			</div>
		</div>
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>